<extend name="Public:template" />
<block name="page_header">
	<include file="Public:header_cust"/>
</block>
<block name="page_body">
	<div class="row">
		<div class="span4">
			<include file="Public:left_menu_cust"/>
		</div>
		<div class="span16">
			<include file="Public:breadcrumb_cust"/>
		</div>
		<div class="span8">
			<table class="table table-bordered">
				<tr>
					<th class="alert-success text-left" colspan="4" style="font-size:14px">订单信息</th>
				</tr>
				<tr>
					<td class="span2 text-right">订单号：</td>
					<td class="text-left">{$orderDetail.order_code}</td>
				</tr>
				<tr>
					<td class="span2 text-right">下单时间：</td>
					<td class="text-left">{$orderDetail.cust_order_time|date="Y-m-d H:i",###}</td>
				</tr>
				<tr>
					<td class="span2 text-right">订单状态：</td>
					<td class="text-left">{$orderDetail.order_status|m_order_status}</td>
				</tr>
				<tr>
					<td class="span2 text-right">订单总额：</td>
					<td class="text-left">
						<span class="price">
							<span class="text-danger now" >¥{$orderDetail.order_amt|number_format=###, 2,'.',''}</span>
							<if condition="$orderDetail['order_send_fee'] neq 0">
								(含¥{$orderDetail['order_send_fee']|number_format=###, 2,'.',''}运费)
							<else/>
								(免运费)
							</if>
						</span>
					</td>
				</tr>
				<tr>
					<td class="span2 text-right">订单备注：</td>
					<td class="text-left">
						<if condition="$orderDetail['order_type'] eq 2">
						<span class="label alert-danger">{$orderDetail.order_type|m_order_type=false}</span>,
						</if>
						{$orderDetail.cust_order_status|m_cust_order_status}
					</td>
				</tr>
			</table>
		</div>
		<div class="span8">
			<table class="table table-bordered">
				<tr>
					<th class="alert-success text-left" colspan="4" style="font-size:14px">配送信息</th>
				</tr>
				<tr>
					<td class="span2 text-right">收货人：</td>
					<td class="text-left">{$orderDetail.cust_name}</td>
				</tr>
				<tr>
					<td class="span2 text-right">联系方式：</td>
					<td class="text-left">{$orderDetail.cust_mobile}</td>
				</tr>
				<tr>
					<td class="span2 text-right">配送地址：</td>
					<td class="text-left">{$orderDetail.cust_address}</td>
				</tr>
				<tr>
					<td class="span2 text-right">时间要求：</td>
					<td class="text-left">{$orderDetail.cust_free_time}</td>
				</tr>
				<tr>
					<td class="span2 text-right">客户备注：</td>
					<td class="text-left">{$orderDetail.cust_bak}</td>
				</tr>
			</table>
		</div>
		<div class="span16">
			<table class="table table-bordered prodList">
				<tr>
					<th class="alert-info text-left" colspan="6" style="font-size:14px">商品清单</th>
				</tr>
				<tr>
					<th class="span2">商品</th>
					<th class="span6">名称</td>
					<th class="span3">规格</span></td>
					<th class="span2">价格</td>
					<th class="span2">购买数量</td>
					<th>状态</td>
				</tr>
				<volist name="orderItems" id="val">
				<tr <if condition="$val['prod_cancel_num'] gt 0">class="danger"</if> >
					<th class="span2">
						<img class="thumbnail" style="margin-left:12px;width:40px;height:40px" src="{$val.prod_pic}" alt="{$val.prod_name}">
					</th>
					<td  class="text-left">
						<empty name="val.prod_link">
							{$val.prod_name}
						<else/>
							<a href="{$val.prod_link}" target="_blank">{$val.prod_name}</a>
						</empty>
						
					</td>
					<td class="text-left"><span class="label label-info">{$val.prod_spec}</span></td>
					<td  class="text-right">¥{$val.prod_price_real}</td>
					<td class="text-left">×{$val.prod_num}</td>
					<td><if condition="$val['prod_cancel_num'] gt 0">退货数量×{$val.prod_cancel_num}</if></td>
				</tr>
				</volist>
				<tr>
					<td colspan="6" class="text-right price">商品总价：<span class="now">¥{$orderDetail.prod_amt|number_format=###, 2,'.',''}</span></td>
				</tr>
				<tr>
					<td colspan="6"  class="text-right price">
						<if condition="$orderDetail['order_send_fee'] neq 0">
							运费：¥{$orderDetail['order_send_fee']|number_format=###, 2,'.',''}
						<else/>
							(免运费)
						</if>
					</td>
				</tr>
			</table>
		</div>
	</div>
</block>
<block name="script_footer">
<script type="text/javascript">
$(document).ready(function(){

})
</script>
</block>